<?php 

function install() {
	include_once dirname(__FILE__).'/../../lib/framework.php';
	
	$includePath = realpath(dirname(__FILE__) . '/../../../');
	if(!preg_match("/\/$/", $includePath)) $includePath.="/";
	
	set_include_path(get_include_path().PATH_SEPARATOR.$includePath);
	
	define('SESSION_FORCE_COOKIE_USE', false);
	define('USE_CACHE', false);
			
	include_once('includes/application_top.php');
	
	$qry = file_get_contents(dirname(__FILE__)."/db_install.sql");
	xtc_db_query($qry);
}
